package org.dromara.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.system.domain.YzlShieldDevice;
import org.dromara.system.domain.vo.YzlShieldDeviceVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 盾构机设备Mapper接口
 *
 * @author wfy
 * @date 2025-10-10
 */
public interface YzlShieldDeviceMapper extends BaseMapperPlus<YzlShieldDevice, YzlShieldDeviceVo> {


    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id"),
        @DataColumn(key = "userName", value = "user_id")
    })
    default Page<YzlShieldDeviceVo> selectVoPageDept(Page<YzlShieldDevice> page, Wrapper<YzlShieldDevice> queryWrapper) {
        return this.selectVoPage(page, queryWrapper);
    }

    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id"),
        @DataColumn(key = "userName", value = "user_id")
    })
    default List<YzlShieldDeviceVo> selectVoListDept(Wrapper<YzlShieldDevice> queryWrapper) {
        return this.selectVoList(queryWrapper);
    }

}
